/*
 * @Author: HeAo
 * @Date: 2021-11-01 11:22:42
 * @LastEditTime: 2021-11-01 11:35:05
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\4-1-Nodejs\day02\2-server.js
 * 别乱动！
 */
let http = require('http')

http.createServer((req, res) => {
  req.on('data', (chunk) => {
    console.log(chunk.toString());
  })

  res.write('hello nodejs')
  res.end();
}).listen(3000, function () {
  console.log('服务器 running');
})

